package com.znf4.user.bank.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.user.bank.entity.UserBank;
import com.znf4.user.bank.mapper.UserBankMapper;
import com.znf4.user.bank.server.UserBankServer;

@Service
public class UserBankServerImpl implements UserBankServer {
	
	@Autowired
	private UserBankMapper userBankMapper ;

	public void addUserBank(UserBank userBank) {
		userBankMapper.insert(userBank);
		
	}

	public void updateUserBank(UserBank userBank) {
		userBankMapper.update(userBank);
		
	}

	public void delOneUserBank(UserBank userBank) {
		userBankMapper.deleteOne(userBank);
		
	}

	public void delAllUserBank(List<UserBank> list) {
		userBankMapper.deleteAll(list);
		
	}

	public UserBank queryOne(UserBank userBank) {
		return userBankMapper.queryOne(userBank);
	}

	public List<UserBank> queryAll(UserBank userBank) {
		return userBankMapper.queryAll(userBank);
	}

	
	
	

	
	
	
	
	
	
	
	
	

}
